package com.yc.jpyy.company.dao;

import java.util.List;
import java.util.Map;
import org.springframework.dao.DataAccessException;
import com.yc.jpyy.base.dao.BaseDao;

public interface CompanyDao extends BaseDao {

	//PageBean findCompanyDao(@Param("companyInfo") String companyInfo) throws DataAccessException;

	int addCompanyDao(Map<String, Object> companyInfo) throws DataAccessException;
	
	String getMaxNember(Map<String, Object> companyInfo) throws DataAccessException;
	
	int UpdateCompanyNoById(Map<String, Object> companyInfo) throws DataAccessException;

	int updateCompanyDao(Map<String, Object> companyInfo) throws DataAccessException;
	
	String selectCompanyName(Map<String, Object> companyInfo) throws DataAccessException;

	int updateAllRelationName(Map<String, Object> companyInfo) throws DataAccessException;
	
	int delCompanyDao(Map<String, Object> info) throws DataAccessException;
	
	int delforupdateCompanyDao(Map<String, Object> info) throws DataAccessException;

	Map<String, Object> findCompanyByID(Map<String, Object> info) throws DataAccessException;
	
	 //分页查询
	List<Map<String, Object>> findCompanyDao(Map<String, Object> paramsMap)throws DataAccessException;
	  
	  //查询总数
	int findCompanyDaoCount(Map<String, Object> paramsMap)throws DataAccessException;
	
	int findExistsByNameDao(Map<String, Object> paramsMap)throws DataAccessException;// 1 存在  0不存在
	
	//分页公司名称
	List<Map<String, Object>> findCompanyNameDao(Map<String, Object> paramsMap)throws DataAccessException;
	
	List<Map<String, Object>> findSumDriverCountAndSumCarCountByID(Map<String, Object> paramsMap)throws DataAccessException;
	
	String getArchivesNo(Map<String, Object> paramsMap)throws DataAccessException;// 1 存在  0不存在
	
    //分页查询
	List<Map<String, Object>> findCompanySelect(Map<String, Object> paramsMap)throws DataAccessException;
    //查询总数
	int findCompanySelectCount(Map<String, Object> paramsMap)throws DataAccessException;
	
	int updateCompanyLicenseDate(Map<String, Object> paramsMap)throws DataAccessException;
		
}
